package com.heima.utils.common;

public class UserThreadLocal extends ThreadLocal<String> {
    public static final ThreadLocal<String> threadLocal = new ThreadLocal<>();

    public static void setUserId(String value) {
        threadLocal.set(value);
    }
    public static String getUserId() {
        return threadLocal.get();
    }
    public static void removeUserId() {
        threadLocal.remove();
    }
}
